package com.kilon.workfaq.service.read.impl;

import com.kilon.workfaq.entity.FilesmessagePo;
import com.kilon.workfaq.mapper.read.FilesmessageReadMapper;
import com.kilon.workfaq.service.read.FilesmessageReadService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * (Filesmessage)表服务实现类
 *
 * @author makejava
 * @since 2023-03-07 18:49:49
 */
@Service("filesmessageReadService")
public class FilesmessageReadServiceImpl implements FilesmessageReadService {
    @Resource
    private FilesmessageReadMapper filesmessageReadMapper;

    /**
     * 通过ID查询单条数据
     *
     * @param fileid 主键
     * @return 实例对象
     */
    @Override
    public FilesmessagePo queryById(Integer fileid) {
        return this.filesmessageReadMapper.queryById(fileid);
    }

    /**
     * 查询全部数据
     *
     * @return 实例对象
     */
    @Override
    public List<FilesmessagePo> queryAll(FilesmessagePo filesmessage) {
        return this.filesmessageReadMapper.queryAll(filesmessage);
    }
}
